package com.aaa.hospital.Configurationterminal.service.Impl;

import com.aaa.hospital.Configurationterminal.mapper.LoginMapper;
import com.aaa.hospital.Configurationterminal.pojo.Admintab;
import com.aaa.hospital.Configurationterminal.pojo.Registermx;
import com.aaa.hospital.Configurationterminal.service.LoginService;
import com.aaa.hospital.ManagementEnd.pojo.Docuser;
import com.aaa.hospital.ManagementEnd.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LoginServiceImpl implements LoginService {

    @Autowired
    private LoginMapper mapper;

    @Override
    public List<User> UsrerqueryById(String user, String password) {
        return mapper.UsrerqueryById(user, password);
    }

    @Override
    public List<Docuser> DocuserqueryById(String user, String password) {
        return mapper.DocuserqueryById(user, password);
    }

    @Override
    public List<Admintab> AdmintabqueryById(String user, String password) {
        return mapper.AdmintabqueryById(user,password);
    }

    @Override
    public List<Registermx> RegistermxById(String user, String password) {
        return mapper.RegistermxById(user, password);
    }


    @Override
    public List<User> UsrerqueryBYName(String user) {
        return mapper.UsrerqueryBYName(user);
    }

    @Override
    public List<Docuser> DocuserqueryBYName(String user) {
        return mapper.DocuserqueryBYName(user);
    }

    @Override
    public List<Admintab> AdmintabqueryBYName(String user) {
        return mapper.AdmintabqueryBYName(user);
    }

    @Override
    public List<Registermx> RegistermxBYName(String user) {
        return mapper.RegistermxBYName(user);
    }

}
